.right {
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease-out;
    flex: 1;
    margin-left: 16rem;
    width: calc(100% - 16rem);
    position: relative;
    &::before {
        content: '';
        z-index: 9;
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        background: palette(shadow, 0.85);
    }
    @mixin query 72rem {
        &:before {
            all: unset;
        }
    }
    &.fold {
        margin-left: 0;
        width: 100%;
        &::before {
            all: unset;
        }
    }
}

.main {
    margin-top: 4.5rem;
    display: flex;
    flex: 1;
}

.loading {
    display: flex;
    flex-grow: 1;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.container {
    flex: 1;
    flex-grow: 1;
    width: 100%;

    article {
        flex-grow: 1;
        transition: all 0.4s ease-in-out;
        background: palette(background);
        justify-content: flex-start;
        display: flex;
        flex-direction: column;
        position: relative;
        padding: 0;
        box-sizing: border-box;

        @mixin query 72rem {
            padding: 0 5.25rem;
        }
    }

    display: flex;
    flex-direction: column;
}

.homepage {
    display: flex;
    article {
        justify-content: center;
        padding: 0;
        transition: all 0.4s ease-in-out;
        background: palette(surface);
        &::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 50%;
            transition: all 0.4s ease-in-out;
            background: palette(background);
            z-index: 0;
        }
    }
}
